<template>
  <div>
    <breaks></breaks>
    <el-card>
      <el-row>
        <el-col :span="8">
          <el-input placeholder="请输入内容" v-model="input3" class="input-with-select">
            <el-button slot="append" icon="el-icon-search"></el-button>
          </el-input>
        </el-col>
      </el-row>

      <el-table :data="orderlist" border stripe>
        <el-table-colum type="index" ></el-table-colum>
        <el-table-colum label="订单编号" prop="order_name"></el-table-colum>
        <el-table-colum label="订单价格" prop="order_name"></el-table-colum>
        <el-table-colum label="订单编号" prop="order_name"></el-table-colum>
      </el-table>
    </el-card>
  </div>
</template>
<script>
import breaks from "../Bread";
export default {
  components: {
    breaks
  },
  data() {
    return {
      queryInfo: {
        query: "",
        pagenum: 1,
        pagesize: 10
      },
      total: 0,
      orderlist: {}
    };
  },
  methods: {
    async getOrderList() {
      const { data: res } = await this.$http.get("orders", {
        params: this.queryInfo
      });
      if (res.meta.status !== 200) {
        return this.$message.error("获取订单列表失败！");
      }
      this.total = res.data.total;
      this.orderlist = res.data.goods;
    }
  }
};
</script>
<style lang="scss">
</style>